Exits a critical region.
OSStatus MPExitCriticalRegion (MPCriticalRegionID criticalRegion);
criticalRegion
A value of type MPCriticalRegionID
that specifies the ID of the critical region you want to exit.
function result
A result code. See
Result Codes
for a list of possible values. If the task does not own the critical region specified by criticalRegion
, MPExitCriticalRegion
returns kMPInsufficientResourcesErr
.
DISCUSSION
This function decrements the use count of the critical region object. When the use count reaches zero, ownership of the critical region object is released (which allows another task to use the critical region).